Type TrackPlayerBuilderProcessStrategy Extends TrackPlayerBuilderStrategy

	?Win32
	Const DEFAULT_COMMAND:String = "mpg123.exe -q --gapless ~q%track%~q"
	?MacOS
	Const DEFAULT_COMMAND:String = "/usr/local/bin/mpg123 -q --gapless ~q%track%~q"	
	?Linux
	Const DEFAULT_COMMAND:String = "/usr/local/bin/mpg123 -q --gapless ~q%track%~q"	
	?
	
	Method Build:TrackPlayer(t:TrackInformation)
		Local tp:TrackPlayerProcess = New TrackPlayerProcess
		Local cmd:String = Configuration.GetInstance().Get("TrackPlayerProcess.Command", DEFAULT_COMMAND)
		tp.command = cmd.Replace("%track%", t.trackUrl)
		tp.track = t
		Return tp
	End Method

End Type
